# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-netdisco
_pkgname=netdisco
pkgver=2.7.1
pkgrel=0
pkgdesc="Python library to scan local network for services and devices"
url="https://github.com/home-assistant/netdisco/"
arch="noarch"
license="Apache-2.0"
depends="py3-zeroconf py3-requests python3"
checkdepends="py3-pytest"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="b2618d563a87dee748ee802fadfad972e427aa0130a66d20308d72ddfa8bfd34cbfc6a4fa0f21bdc748573682708e89c713ad3f78c521038f0bace5b6406b825  netdisco-2.7.1.tar.gz"
